home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15078 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: keats.ugrad.cs.ubc.ca!not-for-mail
  2. From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Help w/ Using Semaphores
  5. Date: 16 Apr 1996 15:18:43 -0700
  6. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  7. Message-ID: <4l16c3INNdnd@keats.ugrad.cs.ubc.ca>
  8. References: <4kv66u$211@felix.seas.gwu.edu>
  9. NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
  10.  
  11. In article <4kv66u$211@felix.seas.gwu.edu>,
  12. Huy T. Nguyen <huyster@seas.gwu.edu> wrote:
  13.  >Hi,
  14.  >
  15.  >I'm looking for help with the use of semaphores.  I've read the man semaphore
  16.  >page but due to my limited experience in C, it's all Greek to me.  I'd
  17.  
  18. I think it's due to your limited experience in programming, especially
  19. concurrent programming. Someone who knows what semaphores are could readily use
  20. them whether through a Pascal, Ada or C interface.
  21.  
  22. Semaphores are not even part of the C language.
  23.  
  24.  >appreciate any general examples anybody can provide, such as a few lines on
  25.  >how to use sema_init(), sema_trywait, etc.  Thanks in advance.
  26.  
  27. These functions and their semantics are probably particular to your operating
  28. system. I wish I could help, but I have no such manual page under HP-UX, SunOS
  29. or Linux. Are these part of POSIX threading?
  30. -- 
  31. I'm not really a jerk, but I play one on Usenet.
  32.